package org.dtrd.modules.doctor.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.doctor.entity.po.DtrdEntRdWalletHistory;
import java.util.Date;

/**
 * <p>
 * 医生钱包历史数据
 * </p>
 *
 * @author QR
 * @since 2021-12-20
 */
@Getter
@Setter
@ApiModel(value = "医生钱包历史数据详情")
public class WalletHistoryDetail {

    private Integer dataId;


    @ApiModelProperty("医生id")
    private Integer walletHistoryDoctorId;

    @ApiModelProperty("增加金额")
    private Integer walletHistoryAddWallet;

    @ApiModelProperty("减少金额")
    private Integer walletHistoryReduceWallet;

    private Integer walletHistoryOperationType;

    private Integer walletHistoryStatus;

    private String walletHistoryRemark;


    public WalletHistoryDetail parseFromPo(DtrdEntRdWalletHistory po) {
        dataId = po.getDataId();
        walletHistoryDoctorId = po.getWalletHistoryDoctorId();
        walletHistoryAddWallet = po.getWalletHistoryAddWallet();
        walletHistoryReduceWallet = po.getWalletHistoryReduceWallet();
        walletHistoryOperationType = po.getWalletHistoryOperationType();
        walletHistoryStatus = po.getWalletHistoryStatus();
        walletHistoryRemark = po.getWalletHistoryRemark();
        return this;
    }
}
